Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Editor] Fix GDExtension GNU/Linux export. #61352

Merged
merged 2 commits into from
May 24, 2022

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented May 24, 2022

In this PR:

  • Report when a GDExtension is skipped due to malformed config file or missing library.
  • Change EditorExportPlatformLinuxBSD os_name to Linux:
    This is in line with what's reported by the OS class on GNU/Linux, and is required by the extension exporter to identify the correct library to export.
    For BSD, we should either finish splitting the platform (into platform/bsd) or register a separate exporter with OS name BSD and proper templates detection.

@Faless Faless added this to the 4.0 milestone May 24, 2022
@Faless Faless requested a review from a team as a code owner May 24, 2022 08:19
@akien-mga akien-mga requested a review from a team May 24, 2022 08:26
for (const String &E : p_features) {
tags.append(E);
}
print_line(vformat("Couldn't export extension: %s. No suitable library found for export flags: %s", p_path, String(", ").join(tags)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be an error?

Copy link
Collaborator Author

@Faless Faless May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure, there might be some platforms where you don't need a specific extension (e.g. webrtc-native on HTML5), but I guess those cases are better handled via the export filters. I'll make it an error for now.

@Faless Faless force-pushed the ext/linux_export branch from 40ba2c2 to 9c2b5ae Compare May 24, 2022 10:01
Faless added 2 commits May 24, 2022 12:01
This is in line with what's reported by the `OS` class on GNU/Linux, and
is required by the extension exporter to identify the correct library.

For BSD, we should either finish splitting the platform (into
platform/bsd) or register a separate exporter with OS name BSD and
proper templates detection.
@akien-mga akien-mga merged commit 360119f into godotengine:master May 24, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants